<?php

/*
Add Pet Look (admin_add_pet_look.php)
*/

$page_title = "Add Pet Look";
$rank_check = 7;
include "../header.inc.php";

$game=$_GET['game'];

$findEnemies = mysql_query("SELECT * FROM pets2 WHERE game = '$game'");
while ($getEnemies = mysql_fetch_array($findEnemies))
{	
	$enemyList .= "<option value=$getEnemies[id]>$getEnemies[name]</option>";
}

$findEnemies2 = mysql_query("SELECT * FROM items2 WHERE item_type = 'pet_look' AND game = '$game'");
while ($getEnemies2 = mysql_fetch_array($findEnemies2))
{	
	$enemyList2 .= "<option value=$getEnemies2[id]>$getEnemies2[item_name]</option>";
}
	
print "$openHTML";

ECHO <<<END

<P><FORM ACTION="admin_add_pet_look.pro.php?game=$game" enctype="multipart/form-data" METHOD=POST>
   <CENTER><TABLE BGCOLOR="$tableOutline" CELLSPACING=1 CELLPADDING=0 WIDTH=400>
      <TR BGCOLOR="$topAndBottomBG">
         <TD COLSPAN=2 HEIGHT=50>
            <CENTER><FONT SIZE="+2" COLOR="$topAndBottomText">--Add Pet
            Look--</FONT></CENTER>
         </TD>
      </TR>
      <TR BGCOLOR="$maincellColor">
         <TD WIDTH=128 HEIGHT=40>
            <P>Change pet</P>
         </TD>
         <TD HEIGHT=40>
            <P><select name=choose_species>$enemyList</select></P>
         </TD>
      </TR>
      <TR BGCOLOR="$middleBG">
         <TD WIDTH=128 HEIGHT=40>
            <P>New Image</P>
         </TD>
         <TD HEIGHT=40>
            <P><FONT SIZE="-1">&nbsp;<input type=file name=petImage></FONT></P>
         </TD>
      </TR>
      <TR BGCOLOR="$maincellColor">
         <TD WIDTH=128 HEIGHT=40>
            <P>Item to change look:</P>
         </TD>
         <TD HEIGHT=40>
            <P><select name=itemName>$enemyList2</select></P>
         </TD>
      </TR>
      <TR>
         <TD COLSPAN=2 HEIGHT=30 BGCOLOR="$topAndBottomBG">
            <CENTER><FONT SIZE="-1" COLOR="$topAndBottomText"><I><INPUT TYPE=submit NAME=Submit VALUE="Add New Pet Look!!"></I></FONT></CENTER>
         </TD>
      </TR>
   </TABLE>
   </CENTER>
</FORM></P>

END;

print "$closeHTML";
?>
